package test;

import java.util.HashMap;
import java.util.Map;

/**
 *create by tbj
 */
/*public class single {
	private static single s=null;
	private single(){};
	public static single getIntance(){
		if(s==null){
			s=new single();
		}
		return s;
	}
}*/
public class single{
	private static single s=new single();
	private single(){};
	public static single getIntance(){
		return s;
	}
}
/*public class Multiton{
	private static Map<String, Multiton> map=new HashMap<String, Multiton>();
	private Multiton(){};
	public static Multiton getIntance(String key){
		Multiton m=map.get(key);
		if(m==null){
			map.put(key, m);
		}
			return m;
		
	}
}*/
